﻿namespace Demo.CommonBase.DTO.Infos
{
    public class PaginationInfo
    {

        /// <summary>
        /// constructor parametrizable
        /// </summary>
        /// <param name="pageNum"></param>
        /// <param name="pageSize"></param>
        /// <param name="sort"></param>
        public PaginationInfo(int pageNum, int pageSize,string sort, string direction)
        {
            PageNum = pageNum;
            PageSize = pageSize;
            Sort = sort;
            Direction = direction;
        }

        public PaginationInfo()
        {
            // TODO: Complete member initialization
        }
        /// <summary>
        /// numero de pagina
        /// </summary>
        public int PageNum { get; set; }
        /// <summary>
        /// tamaño de contenido de la pagina
        /// </summary>
        public int PageSize { get; set; }

        /// <summary>
        /// total de registros
        /// </summary>
        public int TotalCount { get; set; }

        /// <summary>
        /// Nombre de la columna
        /// </summary>
        public string Sort { get; set; }

        /// <summary>
        /// ordenamiento Asc o Desc
        /// </summary>
        public string Direction { get; set; }

    }

    
}
